import {ref, reactive} from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
  const token= ref()
  const userId =ref()
  const userName =ref()
  const setToken = (a) => {
    token.value =a;
  }
  const setUserId =(a)=>{
      userId.value=a
  }
  const setUserName =(a)=>{
      userName.value=a
  }
  return {token,setToken,userId,setUserId,userName,setUserName}
}, {
    persist:true
})
